package cn.zcib.film.util;

/**
 * 用于请求返回数据信息的封装
 */
public class DataGridViewResult {
    private Integer code = 0;
    private String msg = "";
    private Long count;      //data的count
    private Object data;

    @Override
    public String toString() {
        return "DataGridViewResult{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", count=" + count +
                ", data=" + data +
                '}';
    }

    public DataGridViewResult() {
    }

    public DataGridViewResult(Long count, Object data) {
        this.count = count;
        this.data = data;
    }

    public DataGridViewResult(Object data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
